package com.stef.saas.ssm.controller.crm;

import com.stef.saas.common.base.dto.BaseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * 用户表
 *
 * @author stef
 * @date 2021-05-05
 */
@RestController
@RequestMapping("/ssm/crm")
@Api(value = "/ssm/crm", tags = "CRM管理")
public class CrmController {

    /**
     * crm echo
     * @param msg 消息
     * @return BaseResult
     */
    @ApiOperation(value = "CRM echo")
    @GetMapping("")
    public BaseResult echo(@RequestParam(value = "msg", defaultValue = "开什么玩笑,怎么不传值给我???") String msg) {
        return BaseResult.ok("Hello 小老弟... " + msg + ", from CRM");
    }

}
